/**
 * @author qianrong.yin
 * @time 2021-12-16
 * @description 采购管理接口的定义
 */
import Ajax from './Ajax'

/**
 * 获取采购订单接口列表
 * @param {*} params
 * @returns
 */
export const puchaseListApi = params => {
  return Ajax({
    url: '/purchase/list',
    method: 'GET',
    params
  })
}

/**
 * 采购流程接口
 * @param {*} data
 * @returns
 */
export const purchaseFlowApi = data => {
  return Ajax({
    url: '/purchase/flow',
    data
  })
}

/**
 * 获取采购订单的详情信息
 * @param {*} id 采购编码
 * @returns
 */
export const purchaseDetailApi = id => {
  return Ajax({
    url: '/purchase/info',
    method: 'GET',
    params: { id }
  })
}
